package cn.zl.springbootmqtt.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description:接收消息数据
 * @Author: zllwsy
 * @Date: 2020/11/5 16:57
 */
@Data
public class ReceiveData {

    @ApiModelProperty("设备编号")
    private String wdaCode;

    @ApiModelProperty("设备类型(11:路灯,12:LED,21:井盖)")
    private String wdaDeviceType;

    @ApiModelProperty("告警类型")
    private String wdaAlarmType;

    @DateTimeFormat(pattern = "yyyy-MM-dd")//入参格式化
    @JsonFormat(locale="zh", pattern="yyyy-MM-dd")//出参格式化
    @ApiModelProperty("告警时间")
    private Date wdaAlarmTime;

    @ApiModelProperty("告警内容")
    private String wdaAlarmContent;

    @ApiModelProperty("备注")
    private String wdaRemark;

    @ApiModelProperty("井盖编号")
    private String wwcsDeviceCode;

    @ApiModelProperty("井盖状态")
    private String wwcsDeviceStatus;

    @ApiModelProperty("电池电量")
    private Double wwcsBatteryLevel;

    @ApiModelProperty("上传时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")//入参格式化
    @JsonFormat(locale="zh",pattern="yyyy-MM-dd")//出参格式化
    private Date wwcsUploadTime;
}
